#include<string.h>

int prefixCount(char **words, int wordsSize, char *pref)
{
    int cnt = 0;

    for (int i = 0; i < wordsSize; i++)
    {
        if (strstr(words[i], pref) == words[i])
        {
            cnt++;
        }
    }

    return cnt;
}